package titiritero.vista;

import java.awt.Point;

public class BotonAceptar extends Boton{
	
	private Ventana ventana;
	
	public BotonAceptar(int x, int y,Ventana ventana) {
		super("Aceptar", x, y);
		this.ventana = ventana;
	}

	public void MouseClick(int x, int y) {
		if(this.miSuperficie.contains(new Point(x,y))){
			this.ventana.setVisible(false);
		}	
	}

}
